# Don't require GNU-standard files (Changelog, README, etc.)
AUTOMAKE_OPTIONS = foreign

# Override default defines with the ones we want from the configure script
DEFS = $(TEMPLATE_DEFS_INCLUDED) $(LITTLE_ENDIAN)
AM_CPPFLAGS = -I$(top_srcdir)/src/util/cgm \
           -I$(top_srcdir)/src/geom/cgm \
           -I$(top_srcdir)/src/geom/facet/cgm \
           -I$(top_srcdir)/src/geom/Cholla/cgm \
           -I$(top_srcdir)/src/geom/virtual/cgm \
           -I$(top_builddir)/src/util/cgm \
           -I$(top_builddir)/src/geom/cgm

# The name of the library to build
noinst_LTLIBRARIES = 
if BUILD_CGM
  noinst_LTLIBRARIES += libcgm_virtual.la
endif

# The directory where headers will be installed
libcgm_virtual_la_includedir = $(includedir)

libcgm_virtual_la_LIBADD = ${CGM_EXT_LDFLAGS}

# The non-template sources
libcgm_virtual_la_SOURCES = \
    AllocMemManagersVirtual.cpp \
    CACompositeVG.cpp \
    CAPartitionVG.cpp \
    CAVirtualVG.cpp \
    CollapseAngleTool.cpp \
    CollapseCurveTool.cpp \
    CompositeAttrib.cpp \
    CompositeBody.cpp \
    CompositeCoEdge.cpp \
    CompositeCoSurf.cpp \
    CompositeCurve.cpp \
    CompositeEngine.cpp \
    CompositeGeom.cpp \
    CompositeLoop.cpp \
    CompositeLump.cpp \
    CompositePoint.cpp \
    CompositeShell.cpp \
    CompositeSurface.cpp \
    CompositeTool.cpp \
    CompSurfFacets.cpp \
    Faceter.cpp \
    FaceterFacetData.cpp \
    FaceterPointData.cpp \
    HiddenEntitySet.cpp \
    ImprintBoundaryTool.cpp \
    ImprintLineSegment.cpp \
    ImprintPointData.cpp \
    PartitionBody.cpp \
    PartitionCoEdge.cpp \
    PartitionCoSurf.cpp \
    PartitionCurve.cpp \
    PartitionEngine.cpp \
    PartitionEntity.cpp \
    PartitionLoop.cpp \
    PartitionLump.cpp \
    PartitionLumpImprint.cpp \
    PartitionPoint.cpp \
    PartitionShell.cpp \
    PartitionSurface.cpp \
    PartitionTool.cpp \
    PartPTCurve.cpp \
    PartSurfFacetTool.cpp \
    RemoveBlends.cpp \
    SegmentedCurve.cpp \
    SimplifyTool.cpp \
    SplitCompositeSurfaceTool.cpp \
    SubCurve.cpp \
    SubEntitySet.cpp \
    SubSurface.cpp \
    TDVGFacetOwner.cpp \
    TDVGFacetSplit.cpp \
    VirtualQueryEngine.cpp \
    VirtualImprintTool.cpp 

# Headers to be installed.  If any file in this list should
# not be installed, move it to the _SOURCES list above.
nobase_libcgm_virtual_la_include_HEADERS = \
    cgm/CACompositeVG.hpp \
    cgm/CAPartitionVG.hpp \
    cgm/CAVirtualVG.hpp \
    cgm/CollapseAngleTool.hpp \
    cgm/CollapseCurveTool.hpp \
    cgm/CompSurfFacets.hpp \
    cgm/CompositeAttrib.hpp \
    cgm/CompositeBody.hpp \
    cgm/CompositeCoEdge.hpp \
    cgm/CompositeCoSurf.hpp \
    cgm/CompositeCurve.hpp \
    cgm/CompositeEngine.hpp \
    cgm/CompositeGeom.hpp \
    cgm/CompositeLoop.hpp \
    cgm/CompositeLump.hpp \
    cgm/CompositePoint.hpp \
    cgm/CompositeShell.hpp \
    cgm/CompositeSurface.hpp \
    cgm/CompositeTool.hpp \
    cgm/Faceter.hpp \
    cgm/FaceterFacetData.hpp \
    cgm/FaceterPointData.hpp \
    cgm/HiddenEntitySet.hpp \
    cgm/ImprintBoundaryTool.hpp \
    cgm/ImprintLineSegment.hpp \
    cgm/ImprintMatchData.hpp \
    cgm/ImprintPointData.hpp \
    cgm/PartPTCurve.hpp \
    cgm/PartSurfFacetTool.hpp \
    cgm/PartitionBody.hpp \
    cgm/PartitionCoEdge.hpp \
    cgm/PartitionCoSurf.hpp \
    cgm/PartitionCurve.hpp \
    cgm/PartitionEngine.hpp \
    cgm/PartitionEntity.hpp \
    cgm/PartitionLoop.hpp \
    cgm/PartitionLump.hpp \
    cgm/PartitionLumpImprint.hpp \
    cgm/PartitionPoint.hpp \
    cgm/PartitionShell.hpp \
    cgm/PartitionSurface.hpp \
    cgm/PartitionTool.hpp \
    cgm/RemoveBlends.hpp \
    cgm/SegmentedCurve.hpp \
    cgm/SimplifyTool.hpp \
    cgm/SplitCompositeSurfaceTool.hpp \
    cgm/SplitSurfaceVirtual.hpp \
    cgm/SubCurve.hpp \
    cgm/SubEntitySet.hpp \
    cgm/SubSurface.hpp \
    cgm/TDVGFacetOwner.hpp \
    cgm/TDVGFacetSplit.hpp \
    cgm/VGArray.hpp \
    cgm/VGDefines.h \
    cgm/VGLoopTool.hpp \
    cgm/VirtualImprintTool.hpp \
    cgm/VirtualQueryEngine.hpp 

# If template defs are included, then the template definitions
# need to be installed with the headers.  Otherwise they need
# to be compiled.
if INCLUDE_TEMPLATE_DEFS
  nobase_libcgm_virtual_la_include_HEADERS += \
    cgm/VGArray.cpp \
    cgm/VGLoopTool.cpp 
else
  libcgm_virtual_la_SOURCES += \
    cgm/VGArray.cpp \
    cgm/VGLoopTool.cpp 
endif

EXTRA_DIST = CMakeLists.txt

